package com.ctrip.ec.api.mobile;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.FileOutputStream;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Calendar;


/**
 * Created by jiang on 2018/8/22.
 */
public class Sample {

    private final static Logger logger = LoggerFactory.getLogger(Sample.class);
    @Test
    public  void test() throws Exception {
       // String str= Encryption.md5("admin");

        //RC4.RC4
    }

    public static void main(String[] args) throws  Exception {

        String a = "a" + '\u0000' + "b";

        BigDecimal decimal = new BigDecimal(2.334);
        BigDecimal aa= decimal.add(new BigDecimal(2.10));
        System.out.println(aa.setScale(2,BigDecimal.ROUND_HALF_UP).toString());
        System.out.println(a);
//
//        FileOutputStream fos = new FileOutputStream("d:\\abc.txt");
//
//        fos.write("hellodddddaaa".getBytes());
//        fos.flush();
//        fos.close();
    }
}
